package com.kt.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Players {
//    @TableId(value = "pid")
    private Integer pid;
    private String pname;
    @DateTimeFormat(pattern = "yyyy-MM-dd")//将前端传来的字符串转换为Date类型，并设置格式为yyyy-MM-dd
    private Date birthday;
    private Integer height;
    private Integer weight;
    private String position;
    private Integer cid;


}
